class Solution {
public:
    bool findTargetIn2DPlants(vector<vector<int>>& plants, int target) {
        for (auto& e : plants)
        {
            auto it = lower_bound(e.begin(), e.end(), target);
            if (it != e.end() && *it == target)
                return true;
        }
        return false;
    }
};